package com.muqiuhan.osmanthus.serializer

trait AnyRefSerializer[T]:

  def serialize(t: T): Option[Array[Byte]]
  def deserialize(bytes: Array[Byte]): Option[T]

end AnyRefSerializer
